package myhttps;

import java.util.HashMap;
import java.util.Map;

import org.xutils.common.util.LogUtil;

public class HttpUtil {

	/**
	 * ������ת��Ϊhashmap
	 * @param strings ����˳��  key,value,key,value.������
	 * @return
	 */
	public static Map<String, String> getParams(String... strings) {
		Map<String, String> map = new HashMap<String, String>();
		int i = 0;
		String oldkey = "";
		for (String str : strings) {
			if (i % 2 == 0) {
				oldkey = str;
				map.put(oldkey, "");
			}else {
				map.put(oldkey, str);
			}
			i++;
		}
		LogUtil.e(map.toString());
		return map;
	}
}
